<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>东方地产</title>
<link href="__PUBLIC__/Index/css/basic.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/Index/css/layout.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/Index/css/map.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/Admin/js/jquery.js"></script>
<script type="text/javascript">
$(function(){
	check(0);
});
function check(n)
{
	if(n==0)
	{
		$('#obj_1').css('background',"url(__PUBLIC__/Index/images/index_28.jpg)");
		return false;
	}
	for(var i=1;i<7;i++)
	{
		if(i == n)
		{
			
			$('#obj_'+n).css("background","url(__PUBLIC__/Index/images/index_28.jpg)");
		}
		else
		{
			$('#obj_'+i).css("background","");
		}
	}
	/*document.getElementById("obj_"+n).style.backgroundImage="url(__PUBLIC__/Index/images/index_28.jpg)";*/
	$.ajax({
		async:false,
		type:"POST",
		url:"__APP__/Check/index",
		data:"type="+n,
		success:function(msg){
			
		}

	});
}

/**
 * @author : oracle 
 * @name : addfavorite()
 * @desc ：加入收藏
 */
function addfavorite()
{
   var site = 'http://'+document.domain; 
   if (document.all)
   {
      window.external.addFavorite(site,'收藏夹');
   }
   else if (window.sidebar)
   {
      window.sidebar.addPanel('东方地产网', site, "");
   }
} 
/**
 * @author: oracle
 * @name : SetHome
 * @desc ：设为主页
 */
function SetHome(obj,vrl){
        try{
                obj.style.behavior='url(#default#homepage)';obj.setHomePage(vrl);
        }
        catch(e){
                if(window.netscape) {
                        try {
                                netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
                        }
                        catch (e) {
                                alert("此操作被浏览器拒绝！\n请在浏览器地址栏输入“about:config”并回车\n然后将 [signed.applets.codebase_principal_support]的值设置为'true',双击即可。");
                        }
                        var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);
                        prefs.setCharPref('browser.startup.homepage',vrl);
                 }
        }
}

function register(){
	location.href="__APP__/Register/index/";
}
</script>
</head>

<body>
<!--头部开始-->
<div id="top">
  <div class="topmain">
    <div class="topmainleft"><ul>
	<form method="POST" action="__APP__/Login/index">
	<li><img src="__PUBLIC__/Index/images/index_03.jpg" /></li>
	<li>用户名：<input name="" type="text" class="yonghuming"/></li>
	<li>密  码：<input name="" type="text" class="yonghuming"/></li>
	<li><input type="submit"  class="denglu" value="登 陆"/></li>
	</form>
	<li><input type="button"  class="denglu" onclick="register()" value="注 册"/>
	</li>
	</ul></div>
	<div class="topmainright"><ul><li class="pic_sprites"><a href="javascript:void(0);" onclick="SetHome(this,window.location)">设为首页</a></li>     
    <li class="pic_sprites1"><a href="javascript:void(0);" onclick="addfavorite()">收藏本站</a></li>      
	<li class="pic_sprites2"><a href="javascript:void(0);">帮助</a></li>
	</ul> 
	</div>
  </div>
</div>

<div class="logomain"><div class="logo"><img src="__PUBLIC__/Index/images/logo_01.png" /></div>
  <div class="ad1"><img src="__PUBLIC__/Upload/<{$topimg[0]['img']}>" width="494" height="150" /></div>
</div>
<!--头部结束-->
<!--导航开始-->
<div class="clr"></div>
<div class="navmain">
  <div class="navmainzhu"><a href="__APP__/Index/index/">首页</a> | <a href="__APP__/Office/index">写字楼</a> | <a href="__APP__/OviStore/index/">商铺</a> | <a href="__APP__/Villa/index">别墅</a>  | <a href="__APP__/Gongyu/index/">商住公寓</a> | <a href="__APP__/Zheng/index">整租整售</a> | <a href="__APP__/Yezhu/index/">业主房源</a> | <a href="__APP__/Broker/index">经纪人</a> | <a href="#">经纪公司</a> | <a href="__APP__/Subway/index/">地铁沿线</a> | <a href="__APP__/Hang/index">行业动态</a></div>
  <div class="navmainda">
    <div class="fabushezhi"><ul><li><a href="__APP__/Qiuzu/index/">发布求租</a></li>
    <li><a href="__APP__/Qiugou/index/">发布求购</a></li>
    <li><a href="__APP__/Sendrent/index/">发布出租</a></li>
    <li><a href="__APP__/Sendsell/index/">发布出售</a></li>
    </ul></div>
    <div class="xiaonav">
			<div class="navcenter"><ul>
			<li id="obj_1"><a href="#" onclick="check('1')"> 写字楼 </a></li>
			<li id="obj_2"><a href="#" onclick="check('2')">商 铺</a></li>
			<li id="obj_3"><a href="#" onclick="check('3')">别 墅</a></li>
			<li id="obj_4"><a href="#" onclick="check('4')">经纪人</a></li>
			<li id="obj_5"><a href="#" onclick="check('5')">经纪公司</a></li>
			<li id="obj_6"><a href="#" onclick="check('6')">资 讯</a></li>
			</ul>
		  </div>
		  
		    <div class="clr"></div>	
			<form method="POST" action="__APP__/Check/check">
						<div class="searchbar">
						  <input name="textfield" type="text" class="testarea" id="textfield" maxlength="60" />
						  <input name="button" type="submit"  class="findbutton" id="button" value="搜 索"/>
						</div>
			</form>
    </div>
  </div>
</div>
